import {lazy} from 'react'

export default [
    {
        path:'/index',
        name:'index',
        component: lazy(()=>import('../views/Index/index')),
        children:[
            {
                path:'/index/home',
                name:'home',
                component: lazy(()=>import('../views/home/home')),
            },
            {
                path:'/index/cate',
                name:'cate',
                component: lazy(()=>import('../views/cate/cate')),
            },
            {
                path:'/index/gwc',
                name:'gwc',
                component: lazy(()=>import('../views/Gwc/Gwc')),
            },
            {
                path:'/index/wode',
                name:'wode',
                component: lazy(()=>import('../views/Wode/Wode')),
            },
            {
                from:'/index',
                to:'/index/home',
                redirect:true
            },
            {
                path:'*',
                component:  lazy(()=>import('../views/Notfound/index')),
            },
        ]
    },
    {
        path:'/city',
        name:'city',
        component: lazy(()=>import('../views/city/city')),
    },
    {
        path:'/search',
        name:'search',
        component: lazy(()=>import('../views/search/search')),
    },

    {
        path:'/login',
        name:'login',
        component: lazy(()=>import('../views/login/login')),
    },
    {
        path:'/zhuce',
        name:'zhuce',
        component: lazy(()=>import('../views/zhuce/zhuce')),
    },
    {
        path:'/detail',
        name:'detail',
        component: lazy(()=>import('../views/detail/detail')),
    },
    {
        from:'/',
        to:'/index',
        redirect:true
    },
    {
        path:'*',
        component: lazy(()=>import('../views/Notfound/index')),
    },

]